package com.kgc.controller;

import com.kgc.pojo.TicketInfo;
import com.kgc.service.UserService;
import com.kgc.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 获得商品的信息表
 * @author  王臻利
 */
@RestController
public class GetTicketInfoController {

    @Autowired
    private UserService userService;
    /*查询票务信息*/
    @GetMapping("getTicketInfo")
    public Object getTicketInfo(){
        List<TicketInfo> list = userService.getTicketInfo();
        return new Result(list,"获取列表成功");
    }
}
